# Loading the User Dictionary (Windows)

The TextToSpeechStartup call attempts to find the entry for the DECtalk Software user pronunciation dictionary in the registry at:

REGISTRY KEY:

HKEY_CURRENT_USER\Software\DECtalk Software\DECtalk\version\lang lang

Value: UserDict

and is set to value:

[user selected dir]\user.dic

Replace version using the format x.xx in the path designation with the current version number for the DECtalk Software, such as 4.60.

Replace lang lang with the designation for the appropriate language, such as US for United States English, FR for French, GR for German, LA for Latin American Spanish, or UK for United Kingdom English.

If the UserDict entry as specified in the registry entry cannot be found, then the TextToSpeechStartup call returns a value of MMSYSERR_ERROR. If the registry entry is missing, then the TextToSpeechStartup call defaults to looking in the application default directory for user.dic to be loaded as the user pronunciation dictionary.

If the user pronunciation dictionary fails to be loaded, then the TextToSpeechStartup call returns a value of MMSYSERR_ERROR.

Related topics